Optimal. Leaf size=31 \[ -\frac {x}{12}+\frac {5 \text {ArcTan}\left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{6 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3868, 2736}
\begin {gather*} \frac {5 \text {ArcTan}\left (\frac {\sin (c+d x)}{\cos (c+d x)+3}\right )}{6 d}-\frac {x}{12} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 3868
Rubi steps
\begin {align*} \int \frac {1}{3+5 \sec (c+d x)} \, dx &=\frac {x}{3}-\frac {1}{3} \int \frac {1}{1+\frac {3}{5} \cos (c+d x)} \, dx\\ &=-\frac {x}{12}+\frac {5 \tan ^{-1}\left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{6 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 30, normalized size = 0.97 \begin {gather*} \frac {2 (c+d x)+5 \text {ArcTan}\left (2 \cot \left (\frac {1}{2} (c+d x)\right )\right )}{6 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 32, normalized size = 1.03
method | result | size |
derivativedivides | \(\frac {\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {5 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{6}}{d}\) | \(32\) |
default | \(\frac {\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {5 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{6}}{d}\) | \(32\) |
risch | \(\frac {x}{3}-\frac {5 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+3\right )}{12 d}+\frac {5 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {1}{3}\right )}{12 d}\) | \(41\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 47, normalized size = 1.52 \begin {gather*} \frac {4 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right ) - 5 \, \arctan \left (\frac {\sin \left (d x + c\right )}{2 \, {\left (\cos \left (d x + c\right ) + 1\right )}}\right )}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.79, size = 33, normalized size = 1.06 \begin {gather*} \frac {4 \, d x + 5 \, \arctan \left (\frac {5 \, \cos \left (d x + c\right ) + 3}{4 \, \sin \left (d x + c\right )}\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{5 \sec {\left (c + d x \right )} + 3}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 30, normalized size = 0.97 \begin {gather*} -\frac {d x + c - 10 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 3}\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.82, size = 21, normalized size = 0.68 \begin {gather*} \frac {x}{3}-\frac {5\,\mathrm {atan}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )}{6\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________